vt-d: Fix print_vtd_entries walk VTd mapping table.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 9 Jan 2008 10:35:52 +0000 (10:35 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 9 Jan 2008 10:35:52 +0000 (10:35 +0000)
commit450bd7f584bc03c6f01555339aafe68ebaf8f115
treea66b1c66f28444ec7e0b8c6cf3abf0197982ca0f
parentab6c6dfd00279d295ff6ef7fab902802244ba5d5
vt-d: Fix print_vtd_entries walk VTd mapping table.

DMA request to above guest physical memory will cause VTd fault, in
which print_vtd_entries() tries to walk VTd mapping table. However,
during walking, current Xen code didn't check if the PTE is valid and
may access to invalid memory address.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
xen/arch/x86/hvm/vmx/vtd/dmar.c
xen/arch/x86/hvm/vmx/vtd/intel-iommu.c
xen/arch/x86/hvm/vmx/vtd/utils.c